package com.parking.mgr.useraccount.model.param;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @ClassName UserRoleParam
 * @Description 用户分配角色请求参数
 * @Auther: zhijianpu
 * @Date: 2023/6/6
 */
@Data
@ApiModel(description= "用户分配角色请求参数")
public class UserRoleParam {

    /**
     * 主键
     */
    @ApiModelProperty(value = "用户信息id")
    @NotNull(message = "用户信息id不能为空，请检查id参数", groups = {add.class})
    private String id;

    @ApiModelProperty(value = "角色id集合")
    @JsonProperty("fkBasicRoleIds")
    @NotNull(message = "角色id集合不能为空，请检查fkBasicRoleIds参数", groups = {add.class})
    private List<String> fkBasicRoleIds;

    /**
     * 参数校验分组：增加
     */
    public @interface add {
    }

}
